package com.acceptable.qucun.generic.controller;

import com.acceptable.qucun.generic.entity.UrlUserItem;
import com.acceptable.qucun.user.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexHandler {
    @Autowired private UrlUserItem urlUserItem;
    @Autowired private UserService userService;

    @GetMapping("/index")
    public String toIndexPage(){
        System.out.println("重定向");
        return "redirect:" + urlUserItem.getLoginPage();
    }
}
